package com.hjxr.xmgl.web.service.impl;

import java.util.List;

import com.hjxr.xmgl.web.domain.EventQuotaFunctionQueue;
import com.hjxr.xmgl.web.mapper.EventQuotaFunctionQueueMapper;
import com.hjxr.xmgl.web.service.IEventQuotaFunctionQueueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 数据函数运算队列Service业务层处理
 *
 * @author hjxr
 * @date 2021-12-02
 */
@Service
public class EventQuotaFunctionQueueServiceImpl implements IEventQuotaFunctionQueueService
{
    @Autowired
    private EventQuotaFunctionQueueMapper eventQuotaFunctionQueueMapper;

    /**
     * 查询数据函数运算队列
     *
     * @param id 数据函数运算队列ID
     * @return 数据函数运算队列
     */
    @Override
    public EventQuotaFunctionQueue selectEventQuotaFunctionQueueById(String id)
    {
        return eventQuotaFunctionQueueMapper.selectEventQuotaFunctionQueueById(id);
    }

    /**
     * 查询数据函数运算队列列表
     *
     * @param eventQuotaFunctionQueue 数据函数运算队列
     * @return 数据函数运算队列
     */
    @Override
    public List<EventQuotaFunctionQueue> selectEventQuotaFunctionQueueList(EventQuotaFunctionQueue eventQuotaFunctionQueue)
    {
        return eventQuotaFunctionQueueMapper.selectEventQuotaFunctionQueueList(eventQuotaFunctionQueue);
    }

    /**
     * 新增数据函数运算队列
     *
     * @param eventQuotaFunctionQueue 数据函数运算队列
     * @return 结果
     */
    @Override
    public int insertEventQuotaFunctionQueue(EventQuotaFunctionQueue eventQuotaFunctionQueue)
    {
        return eventQuotaFunctionQueueMapper.insertEventQuotaFunctionQueue(eventQuotaFunctionQueue);
    }

    /**
     * 修改数据函数运算队列
     *
     * @param eventQuotaFunctionQueue 数据函数运算队列
     * @return 结果
     */
    @Override
    public int updateEventQuotaFunctionQueue(EventQuotaFunctionQueue eventQuotaFunctionQueue)
    {
        return eventQuotaFunctionQueueMapper.updateEventQuotaFunctionQueue(eventQuotaFunctionQueue);
    }

    /**
     * 批量删除数据函数运算队列
     *
     * @param ids 需要删除的数据函数运算队列ID
     * @return 结果
     */
    @Override
    public int deleteEventQuotaFunctionQueueByIds(String[] ids)
    {
        return eventQuotaFunctionQueueMapper.deleteEventQuotaFunctionQueueByIds(ids);
    }

    /**
     * 删除数据函数运算队列信息
     *
     * @param id 数据函数运算队列ID
     * @return 结果
     */
    @Override
    public int deleteEventQuotaFunctionQueueById(String id)
    {
        return eventQuotaFunctionQueueMapper.deleteEventQuotaFunctionQueueById(id);
    }
}
